package lxq.asia;

public class LinkNode {
    public String msg;
    public int order;
    public LinkNode next;
    public LinkNode pre;

    public LinkNode(){}
    public LinkNode(String data,int order,LinkNode next){
        this.msg=data;
        this.order=order;
        this.next=next;
    }

    public LinkNode(String data,int order,LinkNode pre,LinkNode next){
        this.msg=data;
        this.order=order;
        this.next=next;
        this.pre=pre;
    }

    @Override
    public String toString() {
        return String.format("node:{msg:%s,order:%s}",msg,order);
    }
}
